<template>
  <div id="rate">
    <el-row>
      <div class="block">
        <span class="demonstration">默认不区分颜色</span>
        <el-rate v-model="value1"></el-rate>
      </div>
      <div class="block">
        <span class="demonstration">区分颜色</span>
        <el-rate v-model="value2" :color="['#99A98F', '#F7BA2A', '#FF9900']"></el-rate>
      </div>
    </el-row>
    <hr>
    <el-row>
      <el-rate v-model="value3" show-text></el-rate>
    </el-row>
    <hr>
    <el-row>
      <el-rate v-model="value4" :icon-classes="['icon-rate-face-1', 'icon-rate-face-2', 'icon-rate-face-3']"
      void-icon-class="icon-rate-face-off" :colors="['#99A98B', '#F7BA2A', '#FF9900']"></el-rate>
    </el-row>
    <hr>
    <el-row>
      <el-rate v-model="value5" disabled show-score text-color="#ff9900" score-template="{value}"></el-rate>
    </el-row>
  </div>
</template>

<script>
export default {
  data () {
    return {
      value1: null,
      value2: null,
      value3: null,
      value4: null,
      value5: 3.7
    }
  }
}
</script>
